#include "cGame.h"
#include <stdio.h>
#include "cStateManager.h"
CGame* CGame::s_pInstance = 0;
CGame::CGame(): m_isPaused(false), m_isAlived(true)
{
	s_pInstance = this;
}

void CGame::Pause()
{
	m_isPaused = true;
}

void CGame::Resume()
{
	m_isPaused = false;
}
void CGame::Update()
{
	if (m_isPaused)
	{
			CStateManager::GetInstance()->Update(true);
	}
	else
	{
		CStateManager::GetInstance()->Update(false);
	}
}
void CGame::Exit()
{
	m_isAlived = false;
}